#!/usr/bin/env node

const https = require('https');
const addr = `https://gitee.com/api/v5/users/zhang-menghuan/repos?type=all&sort=full_name&page=1&per_page=20`;
https.get(addr,(res) => {
  let data = '';
  res.on('data',(chunk)=>{
    data += chunk;
  })
  res.on('end',()=>{
    data = JSON.parse(data); 
    for(let repos of data){
      console.log(repos.human_name);
    } 
  })
});
